package cn.edu.scau.cmi.chenyuesong.composite.consistent;
import java.util.Set;

public class ConsistentPerson extends ConsistentOrganization{
	
	private String name;
	

	@Override
	public ConsistentOrganization getParent() {
		return this.getParent();
	}

	@Override
	public ConsistentOrganization addChild(ConsistentOrganization child) {
		return this;
	}

	@Override
	public ConsistentOrganization deleteChild(ConsistentOrganization child) {
		return this;
	}

	@Override
	public Set<ConsistentOrganization> getChildren() {
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String toString() {
		return name;
	}

}
